<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="id" value="{$info['id']|default=''}">
          <div class="row">
            <div class="col-md-12">
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">所&nbsp;&nbsp;属&nbsp;组：</span>
                </div>
                <!-- /btn-group -->
                <select name="module" class="form-control select2" style="width:100%">
				{volist name="module_list" id="module"}
				<option value="{$key}" {if $info['module'] == $key}selected{/if}>{$module}</option>
				{/volist}
                </select>
              </div>            
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">是否导航：</span>
                </div>
                <!-- /btn-group -->
                <select name="type" class="form-control select2" style="width:100%">
                <option value="2">是</option>
                 <option value="1" {eq name="info.type" value="1"}selected{/eq}>否</option>
                </select>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">开发模式：</span>
                </div>
                <!-- /btn-group -->
                <select name="isdev" class="form-control select2" style="width:100%">
                <option value="0">否</option>
                 <option value="1" {eq name="info.isdev" value="1"}selected{/eq}>是</option>
                </select>
              </div>                          
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">上级分类：</span>
                </div>
                <!-- /btn-group -->
                <select name="pid" class="form-control select2" style="width:100%">
				{volist name="menus" id="menu"}
				<option value="{$menu['id']}" {if $info['pid'] == $menu['id']}selected{/if}>{$menu.title_show}</option>
				{/volist}
                </select>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                  <span class="btn btn-default form-left-btn">分类名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="title" value="{$info.title|default=''}"  autocomplete="off"  required="required" placeholder="请输入分类名称">
              </div>              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">URL连接：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="name" value="{$info.name|default=''}"  autocomplete="off"  required="required" placeholder="请输入URL连接">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">分类图标：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" id="icon" name="icon" value="{$info['icon']|default='fa fa-circle-o'}" >
               <span class="input-group-btn">
               <button type="button" class="btn btn-primary btn-flat btn-search-icon" data-url='{:url('ico')}'>搜索图标</button>
              </span>
              </div>    
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">分类排序：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control w30" name="sort" value="{$info.sort|default='0'}" autocomplete="false" placeholder="越小越前面" style="text-align:center;">
              </div>                                   

               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">规则条件：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="condition" class="form-control" style="height: 90px">{$info.condition|default=''}</textarea>
                </div>
                
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">备注说明：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="remark" class="form-control" style="height: 90px">{$info.remark|default=''}</textarea>
                </div>
                               
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">分类状态：</span>
                </div>
                <!-- /btn-group -->
                <select name="status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">显示</option>
          <option value="0" {eq name="info.status" value="0" }selected{/eq}>隐藏</option>
                </select>
              </div>                                                       
            </div>          
          </div>
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>
<!-- /.box-body -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.auth();
});	
</script>
</body>
</html>
